package com.wangmeng.book.dao;

import java.io.Serializable;
import java.util.List;

/**
 * User: wm
 * Date: 13-7-25
 */
public interface IBaseDao extends Serializable {
    public <T> T getEntityById(Class<T> cls, Serializable id);

    public void saveEntity(Object entity);

    public void deleteEntity(Object entity);

    public <T> List<T> listEntityByCondition(Class<T> cls, String condition, Object[] params);

}
